package com.dlc.shop.security.platform.util;

import com.dlc.shop.security.common.util.AuthUserContext;
import com.dlc.shop.security.platform.model.YamiSysUser;
import lombok.experimental.UtilityClass;

/**
 *
 * @author LGH
 */
@UtilityClass
public class SecurityUtils {


    /**
     * 获取用户
     */
    public YamiSysUser getSysUser() {
        YamiSysUser details = new YamiSysUser();
        details.setUserId(AuthUserContext.getSysUserId());
        return details;
    }
}
